//获取sku信息的接口文件
import request from "@/utils/request";

//获取sku列表数据
export const reqSkuList=(page,limit)=>{
  return request({url:`/admin/product/list/${page}/${limit}`,method:"get"})
}

//sku上架
export const reqSkuOnSale=(skuId)=>{
  return request({url:`/admin/product/onSale/${skuId}`,method:"get"})
}
//sku下架
export const reqSkuOffSale=(skuId)=>{
  return request({url:`/admin/product/cancelSale/${skuId}`,method:"get"})
}

//getskuInfo byId
export const reqSkuInfo=(skuId)=>{
  return request({url:`/admin/product/getSkuById/${skuId}`,method:"get"})
}


